<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%
  String status = (String) request.getAttribute("status");
%>

<div id="myBookTab">
  <ul>
    <li <%if(status.equals("all")){%> class="active" <%}%>>
      <a href="<%=request.getContextPath()%>/mybook.action?status=all">全部</a>
      <span><%=request.getAttribute("allCount")%></span>
    </li>
    <li <%if(status.equals("out")){%> class="active" <%}%>>
      <a href="<%=request.getContextPath()%>/mybook.action?status=out">已借出</a>
      <span><%=request.getAttribute("outCount")%></span>
    </li>
    <li <%if(status.equals("in")){%> class="active" <%}%>>
      <a href="<%=request.getContextPath()%>/mybook.action?status=in">未借出</a>
      <span><%=request.getAttribute("inCount")%></span>
    </li>
    <li <%if(status.equals("borrow")){%> class="active" <%}%>>
      <a href="<%=request.getContextPath()%>/mybook.action?status=borrow" class="border-right">借入</a>
      <span><%=request.getAttribute("borrowCount")%></span>
    </li>
  </ul>
  <div>
    <a href="<%=request.getContextPath()%>/editBook.action">新增图书</a>
  </div>
</div>